package com.zpark.serviceimpl;

import com.zpark.dao.MenuDao;
import com.zpark.entity.Menu;
import com.zpark.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MenuServiceImpl implements MenuService{

    @Autowired
    private MenuDao menuDao;

    @Override
    public List<Menu> queryAllMenus() {
        return menuDao.selectAllMenus();
    }
}
